package org.cfx.basic.service;

import org.cfx.basic.query.BaseQuery;
import org.cfx.basic.util.PageList;

import java.util.List;

/**
 * @author RTX 9090
 */
public interface IBaseService<T> {
    void add(T t);
    void update(T t);
    void delete(Long id);
    void batchRemove(List<Long> ids);

    T queryById(Long id);
    List<T> queryAll();
    PageList<T> queryAllPage(BaseQuery baseQuery);
    List<T> query();

    /**
     * 查经理
     */
    List<T> queryManager();
}
